.class public Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static a:Landroid/widget/FrameLayout;

.field public static b:Landroid/widget/FrameLayout;

.field public static c:Z


# instance fields
.field private d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

.field private e:Lcom/waiqin365/lightapp/view/photopreview/c;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/Button;

.field private h:Ljava/util/ArrayList;

.field private i:I

.field private j:Z

.field private k:Landroid/text/SpannableString;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x1

    sput-boolean v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->c:Z

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;Landroid/text/SpannableString;)Landroid/text/SpannableString;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "photoItems"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "currentPage"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->i:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "mode"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->j:Z

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;)Landroid/text/SpannableString;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    return-object v0
.end method

.method private b()V
    .locals 7

    const/16 v6, 0x21

    const/16 v1, 0x8

    const/4 v5, 0x1

    const/high16 v4, 0x41880000    # 17.0f

    const/4 v3, 0x0

    const v0, 0x7f0c099c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    sput-object v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->a:Landroid/widget/FrameLayout;

    const v0, 0x7f0c099e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    sput-object v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->b:Landroid/widget/FrameLayout;

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->j:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->a:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    :goto_0
    const v0, 0x7f0c099d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->g:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->g:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c099b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    new-instance v0, Lcom/waiqin365/lightapp/view/photopreview/c;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    iget-boolean v2, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->j:Z

    invoke-direct {v0, p0, v1, v2}, Lcom/waiqin365/lightapp/view/photopreview/c;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Z)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->e:Lcom/waiqin365/lightapp/view/photopreview/c;

    const v0, 0x7f0c099f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->f:Landroid/widget/TextView;

    invoke-static {}, Landroid/text/method/ScrollingMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->e:Lcom/waiqin365/lightapp/view/photopreview/c;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iget v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->i:I

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setCurrentItem(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    new-instance v1, Lcom/waiqin365/lightapp/view/photopreview/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/view/photopreview/b;-><init>(Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    iget v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->i:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/photopreview/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/photopreview/a;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string/jumbo v1, ""

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    iget v2, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->i:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/photopreview/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/photopreview/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    new-instance v1, Landroid/text/SpannableString;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget v2, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->i:I

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "   "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/photopreview/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/photopreview/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    iput-object v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    new-instance v1, Landroid/text/style/AbsoluteSizeSpan;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-direct {v1, v2}, Landroid/text/style/AbsoluteSizeSpan;-><init>(I)V

    invoke-virtual {v0, v1, v3, v5, v6}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->f:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    return-void

    :cond_0
    sget-object v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->a:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto/16 :goto_0

    :cond_1
    new-instance v0, Landroid/text/SpannableString;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget v2, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->i:I

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    new-instance v1, Landroid/text/style/AbsoluteSizeSpan;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-direct {v1, v2}, Landroid/text/style/AbsoluteSizeSpan;-><init>(I)V

    invoke-virtual {v0, v1, v3, v5, v6}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->f:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->k:Landroid/text/SpannableString;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->f:Landroid/widget/TextView;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c099d
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0301c3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewActivity;->b()V

    return-void
.end method
